package com.eattravel.pojo;

import java.util.Date;
import java.util.List;

public class Order {
    private Long id;
    // 订单号
    private String orderId;
    // 店铺id
    private String storeId;
    // 用户id
    private String userId;
    // 订单内的商品数量
    private Byte commodityNumber;
    // 订单是否评论
    private Byte orderIsEvaluation;
    // 订单内商品总价
    private Long orderAmount;
    // 订单支付状态
    private Byte orderIsPay;
    // 订单标记
    private String orderNote;
    // 下单时间
    private Date orderHours;

    // 所要用到的对象
    private User user;
    private List<Commodity> commodityList;
    private List<Store> storeList;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public List<Commodity> getCommodityList() {
        return commodityList;
    }

    public void setCommodityList(List<Commodity> commodityList) {
        this.commodityList = commodityList;
    }

    public List<Store> getStoreList() {
        return storeList;
    }

    public void setStoreList(List<Store> storeList) {
        this.storeList = storeList;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId == null ? null : orderId.trim();
    }

    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId == null ? null : storeId.trim();
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public Byte getCommodityNumber() {
        return commodityNumber;
    }

    public void setCommodityNumber(Byte commodityNumber) {
        this.commodityNumber = commodityNumber;
    }

    public Byte getOrderIsEvaluation() {
        return orderIsEvaluation;
    }

    public void setOrderIsEvaluation(Byte orderIsEvaluation) {
        this.orderIsEvaluation = orderIsEvaluation;
    }

    public Long getOrderAmount() {
        return orderAmount;
    }

    public void setOrderAmount(Long orderAmount) {
        this.orderAmount = orderAmount;
    }

    public Byte getOrderIsPay() {
        return orderIsPay;
    }

    public void setOrderIsPay(Byte orderIsPay) {
        this.orderIsPay = orderIsPay;
    }

    public String getOrderNote() {
        return orderNote;
    }

    public void setOrderNote(String orderNote) {
        this.orderNote = orderNote == null ? null : orderNote.trim();
    }

    public Date getOrderHours() {
        return orderHours;
    }

    public void setOrderHours(Date orderHours) {
        this.orderHours = orderHours;
    }
}